package com.tedu._04mybatis.mapper;

import com.tedu._04mybatis.pojo.User;
import com.tedu._04mybatis.pojo.UserVO1;
import com.tedu._04mybatis.pojo.UserVO2;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
//    @Insert("INSERT INTO user(username ,password,nickname,created) VALUES (#{username},#{password},#{nickname},#{created})")
    int insert(User user);

    int dynamicDeleteUser(List<Integer> ids);

    int conuntUser();

    UserVO1 selectUserWeiboById(Integer id);

    UserVO2 selectUserCommentById(Integer id );


}
